package com.ruanyin.dao;

import com.ruanyin.domain.User;

import java.util.List;

/**
 * 用户操作的dao
 * @author 啊剥了菠萝没有菠萝蜜
 */
public interface UserDao {
    public List<User> findAll();

    public User findUserById(int id);

    public void alterUser(User newUser);

    public void deleteUserById(int id);

    public void addUser(User user);

    public int findTotalCount();

    public List<User> findByPage(int start, int rows);
}
